<?php

namespace MyApp\Module\_MyModule\Controller;

use MyApp\Module\_MyModule\Model;
/**
 * 控制器例子
 */
class Test extends \Melon\App\Lib\Controller {
    
    public function index() {
    	// print_r(\Melon::env('config.database.driver'));
        
        print_r(\Melon::env()); 

        $article_mod = new Model\Article();

        $article_mod->get_articles();
    	echo 'my test';
        // $this->view->display( 'hello.html' );
    }

    public function test($name, $id) {
    	echo $name;
    	echo $id;

    	print_r($_POST);
    }
}